package com.geek.framework.study.validate.domain;


import javax.validation.Valid;
import java.util.List;

/**
 * {@link Valid}
 * @Target({ METHOD, FIELD, CONSTRUCTOR, PARAMETER, TYPE_USE })
 */
public class User {

    //FIELD
    @Valid
    List<GameRole> dnf;

    //TYPE_USE
    List<@Valid GameRole> cf;

    //METHOD
    List<GameRole> lol;

    //CONSTRUCTOR
    List<GameRole>  redAlert;

    //PARAMETER
    List<GameRole> bladeSoul;

    public User() {

    }

    public User(@Valid List<GameRole> redAlert) {
        this.redAlert = redAlert;
    }

    public List<GameRole> getRedAlert() {
        return redAlert;
    }

    public void setRedAlert(List<GameRole> redAlert) {
        this.redAlert = redAlert;
    }

    public List<GameRole> getBladeSoul() {
        return bladeSoul;
    }

    public void setBladeSoul(@Valid List<GameRole> bladeSoul) {
        this.bladeSoul = bladeSoul;
    }

    public void setLol(List<GameRole> lol) {
        this.lol = lol;
    }

    public List<GameRole> getLol() {
        return lol;
    }

    public List<GameRole> getDnf() {
        return dnf;
    }

    public void setDnf(List<GameRole> dnf) {
        this.dnf = dnf;
    }

    public List<GameRole> getCf() {
        return cf;
    }

    public void setCf(List<GameRole> cf) {
        this.cf = cf;
    }


}
